package com.cctc.mychat.client.handler;

import com.cctc.mychat.common.protocol.message.impl.response.HeartBeatResponseMessage;
import com.cctc.mychat.common.util.JsonUtils;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class HeartBeatResponseMessageHandler extends SimpleChannelInboundHandler<HeartBeatResponseMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, HeartBeatResponseMessage response) throws Exception {
        System.out.println("[HeartBeatResponseMessageHandler] 心跳消息：" + JsonUtils.toJson(response));

        System.out.println("心跳检测成功！！！");
    }
}
